<?php
/**
 * 子应用入口
 * @param  array
 * @return [type]
 */
function run_count_app($uri = array()) {
	if (isset($uri[2]) && !empty($uri[2])) {
		$action = $uri[2];
		$parameter = isset($uri[3]) ? trim($uri[3]) : '';
		switch ($action) {
		case 'post':
			require_once APP_PATH . '/post/index.php';
			post_show_count($parameter);
			break;
		case 'page':
			require_once APP_PATH . '/page/index.php';
			page_show_count($parameter);
			break;
		}
	}
}